package com.spring.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestApp {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(AppConfig.class);
		IHelloService helloService = (IHelloService) ctx.getBean("helloService");
		helloService.sayHello();
//		helloService.sayBye();
	}

}
